package com.slwish.xty.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.slwish.xty.R;
import com.slwish.xty.entity.ComplaintModel;

import java.util.List;

/**
 * 模块说明：
 *
 * @author 陈浩
 * @date 2017/12/22
 */

public class ComPlaintListAdapter extends BaseQuickAdapter<ComplaintModel, BaseViewHolder> {
    public ComPlaintListAdapter(@Nullable List<ComplaintModel> data) {
        super(R.layout.item_complaint_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ComplaintModel item) {
        helper.setText(R.id.tv_title, item.getComplaintMerchant())
                .setText(R.id.tv_content,item.getDescription())
                .setText(R.id.tv_time,item.getTime()).setText(R.id.tv_state,item.getComplaintMerchant());
    }
}
